<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript">
function select_template(code){
	$('.template_select').attr("class","template");
	$('#template_'+code).attr("checked","checked");
	$('#template_thumb_'+code).attr("class","template_select");
}
function $g(o){return document.getElementById(o);}
function tab(id,current,count){
		for(var i=1;i<=count;i++){
			$g(id+'_t'+i).className=$g(id+'_t'+i).className.replace(' current','');
			$g(id+'_c'+i).style.display='none';
		}
		$g(id+'_t'+current).className+=' current';
		$g(id+'_c'+current).style.display='';

}
</script>
<style type="text/css">
.template{border:1px solid #eee;padding:3px;width:60px;height:60px;}
.template_select{border:3px solid red;padding:1px;width:60px;height:60px;}
</style>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>&raquo;&nbsp;系统设置</div>
<div class='item'>
<ul class="tabTitle">
	<li id="cfg_t1" class=" current" onclick="tab('cfg',1,5)">基本设置</li>
	<li id="cfg_t2" onclick="tab('cfg',2,5)">站点控制</li>
	<li id="cfg_t3" onclick="tab('cfg',3,5)">显示数量</li>
	<li id="cfg_t4" onclick="tab('cfg',4,5)">邮件设置</li>
	<li id="cfg_t5" onclick="tab('cfg',5,5)">缩略图</li>
</ul>
<form action="?action=config&do=config_update" method="post" enctype="multipart/form-data">
<table cellpadding="5" id="cfg_c1">
<tr>
<td align="right" height="30">站点名称：</td>
<td><input class="input" type="text" name="site_name" size="80" value="{$config.site_name|escape:html}"/></td>
</tr>
<tr>
<td align="right" height="30">站点关键字：</td>
<td><input class="input" type="text" name="site_keywords" size="80" value="{$config.site_keywords|escape:html}"/></td>
</tr>
<tr>
<td align="right" height="30">站点描述：</td>
<td><textarea class="input" name="site_description" rows="3" cols="80">{$config.site_description|escape:html}</textarea></td>
</tr>
<tr>
<td align="right" height="30">ICP备案号：</td>
<td><input class="input" type="text" name="site_icp" size="30" value="{$config.site_icp|escape:html}"/></td>
</tr>
<tr>
<td align="right" height="30" style="color:#c00">站点公告：</td>
<td><br /><textarea class="input" name="site_notice" rows="6" cols="80">{$config.site_notice|escape:html}</textarea></td>
</tr>
</table>

<table cellpadding="5" id="cfg_c2" style="display:none">
<tr>
<td align="right" height="30">站点状态：</td>
<td><input type="radio" name="site_state" {if $config.site_state=='yes'}checked{/if} value="yes"/> 正常<input type="radio" name="site_state" {if $config.site_state=='no'}checked{/if} value="no"/> 关闭</td>
</tr>

<tr>
<td align="right" height="30">站点关闭声明：</td>
<td><textarea class="input" name="site_close_text" rows="4" cols="80">{$config.site_close_text|escape:html}</textarea></td>
</tr>

<tr>
<td align="right" height="30">禁止访问IP：</td>
<td><textarea class="input" name="site_ip" rows="3" cols="40">{$config.site_ip|escape:html}</textarea></td>
</tr>

<tr>
<td align="right" height="30">非法字符过滤：</td>
<td><textarea class="input" name="site_badwords" rows="3" cols="40">{$config.site_badwords|escape:html}</textarea></td>
</tr>
<tr style="display:none">
<td  align="right" height="30">选择语言：</td>
<td>
<select name="site_language">
<!--{foreach from=$languageuage_dir item=language}-->
<option value="{$language.folder}" {if $config.site_language==$languageuage.folder}selected{/if}>{$language.info}</option>
<!--{/foreach}-->
</select>
</td>
</tr>

<tr style="display:none">
<td align="right" height="30">选择模板：</td>
<td>

<!--{foreach from=$template_dir item=template}-->
<div style="width:80px;height:90px;float:left;text-align:center;">
<label>
<img id="template_thumb_{$template.no}" title="{$template.info|escape:html}" src="{$template.thumb}" class="{if $config.site_template==$template.folder}template_select{else}template{/if}" onclick="select_template({$template.no})"/><br />
<input type="radio"  name="site_template" value="{$template.folder}"  {if $config.site_template==$template.folder}checked{/if} id="template_{$template.no}"/> 
</label>
</div>
<!--{/foreach}-->
<div style="clear:left"></div>
</td>
</tr>
<tr>
<td align="right" height="30">在线超时间隔：</td>
<td><input class="input" type="text" size="10" name="online_time" value="{$config.online_time}"/>&nbsp; 分钟</td>
</tr>
<tr>
<td align="right" height="30">路径优化：</td>
<td><input type="radio" name="rewrite_state" {if $config.rewrite_state=='yes'}checked{/if} value="yes"/> 启动&nbsp;<input type="radio" name="rewrite_state" {if $config.rewrite_state=='no'}checked{/if} value="no"/> 关闭</td>
</tr>

<tr>
<td align="right" height="30">开启会员系统：</td>
<td><input type="radio" name="member_state" {if $config.member_state=='yes'}checked{/if} value="yes"/>&nbsp;启动&nbsp;<input type="radio" name="member_state" {if $config.member_state=='no'}checked{/if} value="no"/>&nbsp;关闭</td>
</tr>
<tr>
<td align="right" height="30">开启会员激活：</td>
<td><input type="radio" name="member_validation_state" {if $config.member_validation_state=='yes'}checked{/if} value="yes"/>&nbsp;启动&nbsp;<input type="radio" name="member_validation_state" {if $config.member_validation_state=='no'}checked{/if} value="no"/>&nbsp;关闭</td>
</tr>
<tr>
<td align="right" height="30">留言审核：</td>
<td><input type="radio" name="feedback_state" {if $config.feedback_state=='yes'}checked{/if} value="yes"/>&nbsp;启动&nbsp;<input type="radio" name="feedback_state" {if $config.feedback_state=='no'}checked{/if} value="no"/>&nbsp;关闭</td>
</tr>
<tr>
<td align="right" height="30">评论审核：</td>
<td><input type="radio" name="comment_state" {if $config.comment_state=='yes'}checked{/if} value="yes"/>&nbsp;启动&nbsp;<input type="radio" name="comment_state" {if $config.comment_state=='no'}checked{/if} value="no"/>&nbsp;关闭</td>
</tr>
</table>

<table cellpadding="5" id="cfg_c3" style="display:none">
<tr><td align="right" height="30">留言列表数：</td><td><input class="input" type="text" name="feedback_size" value="{$config.feedback_size}" size="5"/></td></tr>
<tr><td align="right" height="30">首页内容评论数：</td><td><input class="input" type="text" name="index_comment_size" value="{$config.index_comment_size}" size="5"/></td></tr>
<tr><td align="right" height="30">首页内容评论标题数：</td><td><input class="input" type="text" name="index_comment_content_size" value="{$config.index_comment_content_size}" size="5"/></td></tr>
<tr><td align="right" height="30">人气内容数：</td><td><input class="input" type="text" name="content_hot_size" value="{$config.content_hot_size}" size="5"/></td></tr>
<tr><td align="right" height="30">人气内容标题数：</td><td><input class="input" type="text" name="content_hot_title_size" value="{$config.content_hot_title_size}" size="5"/></td></tr>
<tr><td align="right" height="30">推荐内容数：</td><td><input class="input" type="text" name="content_best_size" value="{$config.content_best_size}" size="5"/></td></tr>
<tr><td align="right" height="30">推荐内容标题数：</td><td><input class="input" type="text" name="content_best_title_size" value="{$config.content_best_title_size}" size="5"/></td></tr>
<tr><td align="right" height="30">评论每页显示条数：</td><td><input class="input" type="text" name="comment_size" value="{$config.comment_size}" size="5"/></td></tr>
<tr><td align="right" height="30">搜索页面显示条数：</td><td><input class="input" type="text" name="search_size" value="{$config.search_size}" size="5"/></td></tr>
<tr><td height="1" bgcolor="#eeeeee" colspan="2"></td></tr>
</table>

<table cellpadding="5" id="cfg_c4"  style="display:none">
<tr>
<td align="right"height="30">邮件服务器地址：</td>
<td><input type="text" name="smtp_server" value="{$config.smtp_server|escape:html}" class="input" /></td></td>
</tr>
<tr>
<td align="right" height="30">邮件服务器端口：</td>
<td><input type="text" name="smtp_port" value="{$config.smtp_port|escape:html}" class="input"/></td>
</tr>
<tr>
<td align="right" height="30">邮件服务器用户：</td>
<td><input type="text" name="smtp_user" value="{$config.smtp_user|escape:html}" class="input"/></td>
</tr>
<tr>
<td align="right" height="30">邮件服务器密码：</td>
<td><input type="text" name="smtp_password" value="{$config.smtp_password|escape:html}" class="input"/></td>
</tr>
</table>

<table cellpadding="5" id="cfg_c5" style="display:none">
<tr>
<td align="right" height="30">生成缩图：</td>
<td><input type="radio" name="image_thumb_open" {if $config.image_thumb_open=='yes'}checked{/if} value="yes"/>&nbsp;启用&nbsp;<input type="radio" name="image_thumb_open"  {if $config.image_thumb_open=='no'}checked{/if} value="no"/>&nbsp;关闭</td>
</tr>
<tr>
<td align="right" height="30">缩图宽度：</td>
<td><input type="text" name="image_thumb_width" value="{$config.image_thumb_width}" class="input"/></td>
</tr>
<tr>
<td align="right" height="30">缩图高度：</td>
<td><input type="text" name="image_thumb_height" value="{$config.image_thumb_height}" class="input"/></td>
</tr>
<tr>
<td align="right" height="30">生成水印：</td>
<td><input type="radio" name="image_text_open" {if $config.image_text_open=='yes'}checked{/if} value="yes"/>&nbsp;启用&nbsp;<input type="radio" name="image_text_open"  {if $config.image_text_open=='no'}checked{/if} value="no"/>&nbsp;关闭
</td>
</tr>
<tr>
<td align="right"  height="30">水印位置：</td>
<td>
<select name="image_pos">
<option value="0" {if $config.image_pos==0}selected{/if}/>随机</option>
<option value="1" {if $config.image_pos==1}selected{/if}/>顶端居左</option>
<option value="2" {if $config.image_pos==2}selected{/if}/>顶端居中</option>
<option value="3" {if $config.image_pos==3}selected{/if}/>顶端居右</option>
<option value="4" {if $config.image_pos==4}selected{/if}/>中部居左</option>
<option value="5" {if $config.image_pos==5}selected{/if}/>中部居中</option>
<option value="6" {if $config.image_pos==6}selected{/if}/>中部居右</option>
<option value="7" {if $config.image_pos==7}selected{/if}/>底端居左</option>
<option value="8" {if $config.image_pos==8}selected{/if}/>底端居中</option>
<option value="9" {if $config.image_pos==9}selected{/if}/>底端居右</option>
</select><br />
</td>
</tr>
<tr>
	<td align="right"  height="30">&nbsp;</td>
	<td> (注：请修改水印文件images/water.png) </td>
</tr>
</table>
<br />
<table width="100%">
<tr><td height="1" bgcolor="#eeeeee" colspan="2"></td></tr>
<tr>
	<td align="right" height="30">&nbsp;</td>
	<td><input type="submit" value="提交" class="button"/></td>
</tr>
</table>
</form>
</div>
<br /><br />
 </div>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>